# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=fplll
pkgver=5.4.5
pkgrel=1
pkgdesc='Lattice algorithms using floating-point arithmetic'
arch=(loong64 x86_64)
url='https://github.com/fplll/fplll'
license=(LGPL)
depends=(gcc-libs
         glibc
         gmp
         mpfr
         qd)
source=(https://github.com/fplll/fplll/releases/download/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('76d3778f0326597ed7505bab19493a9bf6b73a5c5ca614e8fb82f42105c57d00')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
